package com.itheima.service;

import com.itheima.common.entity.PageResult;
import com.itheima.common.entity.Result;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CheckItemService {

    boolean addCheckItem(CheckItem checkItem);

    List<CheckItem> findAll();

    boolean delete(Integer id);

    boolean updateCheckItem(CheckItem checkItem);

    PageResult findPageByCode(Pageable pageable, String code);
    PageResult findPageByName(Pageable pageable, String name);

    CheckItem findById(Integer id);

    PageResult findPageDefault(Pageable pageable);


}